FROM ubuntu:16.04

MAINTAINER hejiawen

RUN sed -i -r 's#http://(archive|security).ubuntu.com#http://mirrors.ustc.edu.cn#g' /etc/apt/sources.list \
  && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
  && echo 'Asia/Shanghai' >/etc/timezone

RUN apt update \
  && apt install --no-install-recommends -y locales apt-utils binfmt-support u-boot-tools bc bison\
     build-essential sudo cpio bzip2 curl wget language-selector-common vim git flex libsm6 libxrender1 tree\
     libncurses5-dev lzop zlib1g-dev libglib2.0-0 libglib2.0-dev libsdl1.2-dev libpixman-1-dev libfdt-dev \
#     gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi g++-arm-linux-gnueabi\
  && apt-get autoremove \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8

ENV LANG zh_CN.utf8
